/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nanosl.minix.fxml;

import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;

/**
 * FXML Controller class
 *
 * @author sandun
 */
public class PurchaseViewController implements Initializable {
    @FXML
    private TextField iteamCodeTextField;
    @FXML
    private TextField byingPriceTextField;
    @FXML
    private TextField quantityTextField;
    @FXML
    private TextField dateTextField;
    @FXML
    private Button clearButton;
    @FXML
    private Button processButton;

    /**
     * Initializes the controller class.
     */
    @Override
    public void initialize(URL url, ResourceBundle rb) {
        // TODO
    }    

    @FXML
    private void gotoByingPrice(ActionEvent event) {
        byingPriceTextField.requestFocus();
    }

    @FXML
    private void gotoQuantity(ActionEvent event) {
        quantityTextField.requestFocus();
    }

    @FXML
    private void gotoProcessButton(ActionEvent event) {
        processButton.requestFocus();
    }

    @FXML
    private void gotoIteamCode(ActionEvent event) {
        iteamCodeTextField.requestFocus();
    }

    @FXML
    private void Clear(ActionEvent event) {
        dateTextField.setText("");
        iteamCodeTextField.setText("");
     byingPriceTextField.setText("");
     quantityTextField.setText("");
    
    }

    @FXML
    private void displayOnTable(ActionEvent event) {
    }
}
